﻿Imports Licenta3.Common.Framework
Imports Licenta3.Common.Classes
Public Class PersoanaClass
    Inherits ObjectBase
    Private _IsPF As Boolean = True
    Public Property IsPF As Boolean
        Get
            Return _IsPF
        End Get
        Set(value As Boolean)
            If value <> _IsPF Then
                _IsPF = value
                OnPropertyChanged("IsPF")
            End If
        End Set
    End Property
    Private _Nume As String
    Public Property Nume As String
        Get
            Return _Nume
        End Get
        Set(value As String)
            If value <> _Nume Then
                _Nume = value
                OnPropertyChanged("Nume")
            End If
        End Set
    End Property
    Private _adresa As New Adresa
    Public Property adresa As Adresa
        Get
            Return _adresa
        End Get
        Set(value As Adresa)
            If value IsNot _adresa Then
                _adresa = value
                OnPropertyChanged("adresa")
            End If
        End Set
    End Property
    Private _id As String
    Public Property id As String
        Get
            Return _id
        End Get
        Set(value As String)
            If value IsNot _id Then
                _id = value
                OnPropertyChanged("id")
            End If
        End Set
    End Property
    Private _SerieCI As String
    Public Property SerieCI As String
        Get
            Return _SerieCI
        End Get
        Set(value As String)
            If (value IsNot _SerieCI) And IsPF Then
                _SerieCI = value
                OnPropertyChanged("SerieCI")
            End If
        End Set
    End Property
    Private _NrCI As String
    Public Property NrCI As String
        Get
            Return _NrCI
        End Get
        Set(value As String)
            If value IsNot _NrCI And IsPF Then
                _NrCI = value
                OnPropertyChanged("NrCI")
            End If
        End Set
    End Property
    Private _tel
    Public Property tel As String
        Get
            Return _tel
        End Get
        Set(value As String)
            If value IsNot _tel Then
                _tel = value
                OnPropertyChanged("tel")
            End If
        End Set
    End Property
    Private _email
    Public Property email As String
        Get
            Return _email
        End Get
        Set(value As String)
            If value IsNot _email Then
                _email = value
                OnPropertyChanged("email")
            End If
        End Set
    End Property
End Class
